<?php
/*
 * @Author: 李明
 * @Date: 2022-01-14 17:41:47
 * @LastEditTime: 2022-01-17 15:20:48
 * @LastEditors: 李明
 * @Description: 
 * @FilePath: /CRM2.0-PHP/app/Http/Controllers/app/base/BaseDataController.php
 * @山东壹零贰肆信息科技有限公司
 */

namespace App\Http\Controllers\app\base;

use App\Http\Controllers\common\LMReturn;
use App\Http\Controllers\Controller;
use App\Models\SystemBase;
use Illuminate\Http\Request;

class BaseDataController extends Controller
{
    public function appVersion(Request $request)
    {
        try {
            $base = SystemBase::find(1);
            $data['Android_version'] = $base->version;
            $data['iOS_version'] = 1;
            $data['Android_version_str'] = '2.1';
            $data['iOS_version_str'] = '2.1.1';
            $data['down_url'] = 'http://down.1024kj.top/';
            $data['name'] = '国邦盛世';
            return LMReturn::Success($data);
        } catch (\Throwable $th) {
            return LMReturn::Error('发生错误', 'BDCAV1');
        }
    }
}
